#include<stdio.h>
#include<math.h>
float  f(float x,float y)

{ return (x*x+y*y);

}
 int main()
 
{
float x,y,x0,y0,h,xn,k1,k2,k,k3,k4;
printf("enter the value x0,y0,h,xn");
scanf("%f%f%f%f",&x0,&y0,&h,&xn);
x=x0;
y=y0;
printf("reaching the ans");
while(x0<xn)
{
k1=h*f(x0,y0);
k2=h*f(x0+h/2,y0+k1/2);
k3=h*f(x0+h/2,y0+k2/2);
k4=h*f(x0+h,y0+k3);
k=(k1+2*k2+2*k3+k4)/6;
y0=y0+k;
x0=x0+h;
 printf("%f\n",y0);
}
return 0;
}





